import request from '@/utils/request'

// 根据公司id查询劳务人员列表
export function getProLitsData (query) {
  return request({
    url: '/employee/outsourcing/list',
    method: 'get',
    params: query
  })
}
// 授权点部门树
export function getDeptTreeDeptData (query) {
  return request({
    url: '/tree/construction_point',
    method: 'get',
    params: query
  })
}

// 项目班组绑定人员
export function addPro (query) {
  return request({
    url: '/system/dept/group/addUsers',
    method: 'post',
    data: query
  })
}
// 项目班组列表
export function finGroupQuery (query) {
  return request({
    url: `/system/dept/group/query?pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
    method: 'post',
    data: query
  })
}
// 删除劳务公司
export function deleteUsers (query) {
  return request({
    url: '/system/dept/group/deleteUsers',
    method: 'get',
    params: query
  })
}
// 修改
export function queryDetail (query) {
  return request({
    url: '/system/dept/group/queryDetail',
    method: 'get',
    params: query
  })
}
// 修改
export function updateUsers (query) {
  return request({
    url: '/system/dept/group/updateUsers',
    method: 'post',
    data: query
  })
}
